//==============================================================================
// AOE villager_anim.txt
//==============================================================================

import bow_defines_anim.txt

//==============================================================================
define Head
{
	SetSelector
	{
		set hotspot
		{
			version
			{
				Visual Siege C Fire Lance Head
			}
		}
	}
}

//==============================================================================
define Seeds
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Sow Seeds
      }
   }  
}

//==============================================================================
define basket
{
   set hotspot
   {
      version
      {
         Visual Attachments A basket
      }
   }  
}

//==============================================================================
define arrow
{
   set hotspot
   {
      version
      {
         Visual Villager Arrow Normal
      }
   }
}

//==============================================================================
define axe
{
   TechLogic Hand Axe/Bow Saw/Carpenters
   set hotspot
   {
      version
      {
         Visual Attachments A Axe Hatchet
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Axe Wood
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Axe DoubleBit
      }
   }
}


//==============================================================================
define weapon
{
   TargetLogic none/wood
   set hotspot
   {
      version
      {
         Visual Attachments A Knife
      }
   }
   set hotspot
   {
      version
      {
         connect hotspot axe hotspot
      }
   }
}

//==============================================================================
define hammer
{
   set hotspot
   {
      version
      {
         Visual Tool Hammer
      }
   }
}

//==============================================================================
define hoe
{
   set hotspot
   {
      version
      {
         Visual tool hoe
      }
   }
}

//==============================================================================
define knife
{
   set hotspot
   {
      version
      {
         Visual tool knife
      }
   }
}

//==============================================================================
define pickaxe
{
   TechLogic PickAxe/Shaft Mine/Quarry
   set hotspot
   {
      version
      {
         Visual Tool Pickaxe MetalBit
      }
   }
   set hotspot
   {
      version
      {
         Visual Tool Pickaxe MetalBit
      }
   }
   set hotspot
   {
      version
      {
         Visual Tool Pickaxe Miners
      }
   }
}

//==============================================================================
define carryStuff
{
   CarryTypeLogic grain/meat/fish/wood/gold
   set hotspot
   {
      version
      {
         Visual Attachments A Resource Grain
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Resource Meat
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Resource Fish
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Resource Wood
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments A Resource Gold
      }
   }
}

//==============================================================================
anim GatherChop
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_chopA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag Attack 0.67 true   
                  tag SpecificSoundSet 0.67 false GatherChop checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect RightHand Axe hotspot
					connect TOPOFHEAD head hotspot
				}
			}
		}
	}
}


//==============================================================================
anim GatherMine
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_mineA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.58 true   
                  tag SpecificSoundSet 0.73 false GatherMine checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect RightHand pickaxe hotspot
					connect TOPOFHEAD head hotspot
				}
			}
		}
	}
}

//==============================================================================
anim Attack
{
   SetSelector
   {
		TargetLogic none/wood
		Setselector
			{
				set hotspot
				{
					version
					{
						Visual Villager C Male_handAttack
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag Attack 0.49 true   
                  tag GenericSound 0.40 true   
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
						connect RightHand weapon hotspot
					connect TOPOFHEAD head hotspot
      }
   }
   set hotspot
   {
      version
      {
						Visual Villager C Male_chopDown
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag Attack 0.70 true   
                  tag GenericSound 0.40 true   
                  tag SpecificSoundSet 0.70 false TreeHit checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
						connect RightHand Axe hotspot
					connect TOPOFHEAD head hotspot
					}
				}
			}
		}
   }
}

//==============================================================================
anim RangedAttack
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_RangedAttackA
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag Attack 0.60 true   
                  tag GenericSound 0.57 true   
                  tag SpecificSoundSet 0.63 false Arrow checkVisible 
	       tag SpecificSoundSet 0.63 true BowFire checkVisible
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
						connect LeftHand bow hotspot
					connect TOPOFHEAD head hotspot
				}
			}
		}
   }
}

//==============================================================================
anim Death
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_deathA
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect TOPOFHEAD head hotspot
				}
			}
		}
   }
}

//==============================================================================
anim Idle
{
   SetSelector
		{
			InventoryLogic 0 1
			SetSelector
			{
				set hotspot
				{
					version
					{
						Visual Villager C Male_IdleA
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect TOPOFHEAD head hotspot
      }
   }
   set hotspot
   {
      version
      {
						Visual Villager C Male_CarryIdleA
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
						Connect ATTACHPOINT carryStuff hotspot
					connect TOPOFHEAD head hotspot
					}
				}
			}
		}
   }
}

//==============================================================================
anim Bored
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_boredA
					connect TOPOFHEAD head hotspot
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
				}
			}
		}
   }
}

//==============================================================================
anim walk
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_WalkA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag FootstepRight 0.10 true   
                  tag FootstepLeft 0.35 true   
                  tag FootstepRight 0.60 true   
                  tag FootstepLeft 0.85 true   
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
				}
			}
		}
   }
}

//==============================================================================
anim Build
{
   SetSelector
      {
         TargetLogic none/farm/dig pile/excavation/plantation
         Set hotspot
         {
            version
            {
					Visual Villager C Male_BuildA	
					connect TOPOFHEAD head hotspot		      
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.92 true   
                  tag SpecificSoundSet 0.00 false Build checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect RightHand hammer hotspot
      }
   }
   set hotspot
   {
      version
      {
               Visual Villager C Male_sowA
               
					connect ATTACHPOINT basket hotspot
					connect RightHand seeds hotspot	
					connect TOPOFHEAD head hotspot
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
      }
   }
   set hotspot
   {
      version
      {
					Visual Villager C Male_DigA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.58 true   
                  tag SpecificSoundSet 0.21 false GatherFarm checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
      }
   }
   set hotspot
   {
      version
      {
					Visual Villager C Male_DigA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.58 true   
                  tag SpecificSoundSet 0.21 false GatherFarm checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
				}
			}
   set hotspot
   {
      version
      {
               Visual Villager C Male_sowA
               
					connect ATTACHPOINT basket hotspot
					connect RightHand seeds hotspot	
					connect TOPOFHEAD head hotspot
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
      }
   }
      }
   }
}

//==============================================================================
anim GatherFarm
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_farmA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.67 true   
                  tag SpecificSoundSet 0.00 false GatherFarm checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect RightHand hoe hotspot
					//connect topofhead farmerhat hotspot
				}
			}
		}
   }
}

//==============================================================================
anim Gatherbush
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_HarvestA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag GenericSound 0.67 true   
                  tag SpecificSoundSet 0.50 false Forage checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect LeftHand Basket hotspot
				}
			}
		}
   }
}

//==============================================================================
anim GatherHunt
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_SliceA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag Attack 0.60 true   
                  tag GenericSound 0.58 true   
                  tag SpecificSoundSet 0.83 false GatherFlay checkVisible 
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					connect RightHand knife hotspot
				}
			}
		}
   }
}

//==============================================================================
anim carry
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_carryA
					connect TOPOFHEAD head hotspot
//-- auto generated by the bang animation tool
//-- do not hand edit these values
                  tag FootstepLeft 0.40 true   
                  tag FootstepRight 0.70 true   
//-- end auto generated section
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
					Connect ATTACHPOINT carryStuff hotspot
				}
			}
		}
   }
}

//==============================================================================
anim flail
{
   SetSelector
		{
			set hotspot
			{
				version
				{
					Visual Villager C Male_flailA
					connect TOPOFHEAD head hotspot
					ReplaceTexture Villager n male head/villager n slave head standard
					ReplaceTexture villager c male standard/villager c slave standard
				}
			}
		}
   }
}